/*! For license information please see core.js.LICENSE.txt */ (()=>{var t={4912:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BrowserClient:()=>Fn,Hub:()=>ut,Integrations:()=>vr,SDK_NAME:()=>lr,SDK_VERSION:()=>Ft,Scope:()=>j,Session:()=>at,Severity:()=>c,Transports:()=>i,addBreadcrumb:()=>wt,addGlobalEventProcessor:()=>R,captureEvent:()=>bt,captureException:()=>yt,captureMessage:()=>mt,close:()=>pr,configureScope:()=>_t,defaultIntegrations:()=>rr,eventFromException:()=>Pe,eventFromMessage:()=>Ae,flush:()=>ur,forceLoad:()=>ar,getCurrentHub:()=>ft,getHubFromCarrier:()=>dt,init:()=>or,injectReportDialog:()=>un,lastEventId:()=>sr,makeMain:()=>ht,onLoad:()=>cr,setContext:()=>Ct,setExtra:()=>St,setExtras:()=>xt,setTag:()=>kt,setTags:()=>Et,setUser:()=>Ot,showReportDialog:()=>ir,startTransaction:()=>jt,withScope:()=>Tt,wrap:()=>hr});var r={};n.r(r),n.d(r,{FunctionToString:()=>Bn,InboundFilters:()=>Pn});var o={};n.r(o),n.d(o,{Breadcrumbs:()=>En,Dedupe:()=>Kn,GlobalHandlers:()=>$n,LinkedErrors:()=>Yn,TryCatch:()=>In,UserAgent:()=>nr});var i={};n.r(i),n.d(i,{BaseTransport:()=>Ze,FetchTransport:()=>Qe,XHRTransport:()=>nn,makeNewFetchTransport:()=>Je,makeNewXHRTransport:()=>en});var s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},s(t,e)};function a(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c,u=function(){return u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function f(){for(var t=[],e=0;e0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(f(F(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=u(u({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,r){var o=this;return void 0===r&&(r=0),new O((function(i,s){var a=t[r];if(null===e||"function"!=typeof a)i(e);else{var c=a(u({},e),n);C(c)?c.then((function(e){return o._notifyEventProcessors(t,e,n,r+1).then(i)})).then(null,s):o._notifyEventProcessors(t,c,n,r+1).then(i).then(null,s)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function F(){return(0,T.B)("globalEventProcessors",(function(){return[]}))}function R(t){F().push(t)}function P(t,e){try{for(var n=t,r=[],o=0,i=0,s=void 0;n&&o++<5&&!("html"===(s=A(n,e))||o>1&&i+3*r.length+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function A(t,e){var n,r,o,i,s,a=t,c=[];if(!a||!a.tagName)return"";c.push(a.tagName.toLowerCase());var u=e&&e.length?e.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(u&&u.length)u.forEach((function(t){c.push("["+t[0]+'="'+t[1]+'"]')}));else if(a.id&&c.push("#"+a.id),(n=a.className)&&m(n))for(r=n.split(/\s+/),s=0;s"}}function H(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function z(t,e){void 0===e&&(e=40);var n=Object.keys(q(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return D(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:D(o,e)}return""}function V(t){var e,n;if(_(t)){var r={};try{for(var o=p(Object.keys(t)),i=o.next();!i.done;i=o.next()){var s=i.value;void 0!==t[s]&&(r[s]=V(t[s]))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return Array.isArray(t)?t.map(V):t}function W(){var t=(0,T.V)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function X(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function Y(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function J(t){var e=t.message,n=t.event_id;if(e)return e;var r=Y(t);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"":n||""}function K(t,e,n){var r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function G(t,e){var n=Y(t);if(n){var r=n.mechanism;if(n.mechanism=u(u(u({},{type:"generic",handled:!0}),r),e),e&&"data"in e){var o=u(u({},r&&r.data),e.data);n.mechanism.data=o}}}function Z(t){if(t&&t.__sentry_captured__)return!0;try{N(t,"__sentry_captured__",!0)}catch(t){}return!1}var Q,tt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,et=(0,T.V)(),nt=["debug","info","warn","error","log","assert"];function rt(t){var e=(0,T.V)();if(!("console"in e))return t();var n=e.console,r={};nt.forEach((function(t){var o=n[t]&&n[t].__sentry_original__;t in e.console&&o&&(r[t]=n[t],n[t]=o)}));try{return t()}finally{Object.keys(r).forEach((function(t){n[t]=r[t]}))}}function ot(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return tt?nt.forEach((function(n){e[n]=function(){for(var e=[],r=0;r=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return V({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),ct=4,ut=function(){function t(t,e,n){void 0===e&&(e=new j),void 0===n&&(n=ct),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version1&&(p=l.slice(0,-1).join("/"),f=l.pop()),f){var d=f.match(/^\d+/);d&&(f=d[0])}return Bt({host:a,pass:s,path:p,projectId:f,port:u,protocol:r,publicKey:o})}(t):Bt(t);return function(t){if(tt){var e=t.port,n=t.projectId,r=t.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new Pt("Invalid Sentry Dsn: "+e+" missing")})),!n.match(/^\d+$/))throw new Pt("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(t){return"http"===t||"https"===t}(r))throw new Pt("Invalid Sentry Dsn: Invalid protocol "+r);if(e&&isNaN(parseInt(e,10)))throw new Pt("Invalid Sentry Dsn: Invalid port "+e)}}(e),e}var It=50;var Nt="";function Mt(t){try{return t&&"function"==typeof t&&t.name||Nt}catch(t){return Nt}}function Ut(t,e,n){void 0===e&&(e=1/0),void 0===n&&(n=1/0);try{return $t("",t,e,n)}catch(t){return{ERROR:"**non-serializable** ("+t+")"}}}function qt(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r,o=Ut(t,e);return r=o,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?qt(t,e-1,n):o}function $t(t,e,r,o,i){var s,a;void 0===r&&(r=1/0),void 0===o&&(o=1/0),void 0===i&&(s="function"==typeof WeakSet,a=s?new WeakSet:[],i=[function(t){if(s)return!!a.has(t)||(a.add(t),!1);for(var e=0;e=o){v[b]="[MaxProperties ~]";break}var C=m[b];v[b]=$t(b,C,r-1,o,i),y+=1}return f(e),v}var Ht="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,zt=[];function Vt(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}var Wt="Not capturing exception because it's already been captured.",Xt=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=Lt(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this;if(!Z(t)){var o=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){o=t}))),o}Ht&&Q.log(Wt)},t.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id,s=b(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(s.then((function(t){return o._captureEvent(t,n,r)})).then((function(t){i=t}))),i},t.prototype.captureEvent=function(t,e,n){if(!(e&&e.originalException&&Z(e.originalException))){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r}Ht&&Q.log(Wt)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?Ht&&Q.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):Ht&&Q.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){var t,e;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(t=this._options,e={},function(t){var e=t.defaultIntegrations&&f(t.defaultIntegrations)||[],n=t.integrations,r=f(Vt(e));Array.isArray(n)?r=f(r.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),Vt(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(t){return t.name})),i="Debug";return-1!==o.indexOf(i)&&r.push.apply(r,f(r.splice(o.indexOf(i),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===zt.indexOf(t.name)&&(t.setupOnce(R,ft),zt.push(t.name),Ht&&Q.log("Integration installed: "+t.name))}(t)})),N(e,"initialized",!0),e))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return Ht&&Q.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,o=!1,i=!1,s=e.exception&&e.exception.values;if(s){i=!0;try{for(var a=p(s),c=a.next();!c.done;c=a.next()){var h=c.value.mechanism;if(h&&!1===h.handled){o=!0;break}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var f="ok"===t.status;(f&&0===t.errors||f&&o)&&(t.update(u(u({},o&&{status:"crashed"}),{errors:t.errors||Number(i||o)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new O((function(n){var r=0,o=setInterval((function(){0==e._numProcessing?(clearInterval(o),n(!0)):(r+=1,t&&r>=t&&(clearInterval(o),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.normalizeDepth,s=void 0===i?3:i,a=o.normalizeMaxBreadth,c=void 0===a?1e3:a,p=u(u({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:W()),timestamp:t.timestamp||(0,E.lu)()});this._applyClientOptions(p),this._applyIntegrationsMetadata(p);var h=e;n&&n.captureContext&&(h=j.clone(h).update(n.captureContext));var f=S(p);return h&&(f=h.applyToEvent(p,n)),f.then((function(t){return t&&(t.sdkProcessingMetadata=u(u({},t.sdkProcessingMetadata),{normalizeDepth:Ut(s)+" ("+typeof s+")"})),"number"==typeof s&&s>0?r._normalizeEvent(t,s,c):t}))},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=u(u(u(u(u({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return u(u({},t),t.data&&{data:Ut(t.data,e,n)})}))}),t.user&&{user:Ut(t.user,e,n)}),t.contexts&&{contexts:Ut(t.contexts,e,n)}),t.extra&&{extra:Ut(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=u(u({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,s=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=D(t.message,s));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=D(a.value,s));var c=t.request;c&&c.url&&(c.url=D(c.url,s))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=f(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){Ht&&Q.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.beforeSend,s=o.sampleRate,a=this.getTransport();function c(t,e){a.recordLostEvent&&a.recordLostEvent(t,e)}if(!this._isEnabled())return k(new Pt("SDK not enabled, will not capture event."));var u="transaction"===t.type;return!u&&"number"==typeof s&&Math.random()>s?(c("sample_rate","event"),k(new Pt("Discarding event because it's not included in the random sample (sampling rate = "+s+")"))):this._prepareEvent(t,n,e).then((function(n){if(null===n)throw c("event_processor",t.type||"event"),new Pt("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||u||!i?n:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(C(t))return t.then((function(t){if(!_(t)&&null!==t)throw new Pt(e);return t}),(function(t){throw new Pt("beforeSend rejected with "+t)}));if(!_(t)&&null!==t)throw new Pt(e);return t}(i(n,e))})).then((function(e){if(null===e)throw c("before_send",t.type||"event"),new Pt("`beforeSend` returned `null`, will not send event.");var o=n&&n.getSession&&n.getSession();return!u&&o&&r._updateSessionFromEvent(o,e),r._sendEvent(e),e})).then(null,(function(t){if(t instanceof Pt)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new Pt("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t}(),Yt="7";function Jt(t,e,n){return{initDsn:t,metadata:e||{},dsn:Lt(t),tunnel:n}}function Kt(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function Gt(t,e){return""+Kt(t)+t.projectId+"/"+e+"/"}function Zt(t){return e={sentry_key:t.publicKey,sentry_version:Yt},Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&");var e}function Qt(t){return Gt(t,"store")}function te(t){return Qt(t)+"?"+Zt(t)}function ee(t,e){return e||function(t){return Gt(t,"envelope")}(t)+"?"+Zt(t)}function ne(t,e){return void 0===e&&(e=[]),[t,e]}function re(t){var e=h(t,2),n=e[0],r=e[1],o=JSON.stringify(n);return r.reduce((function(t,e){var n=h(e,2),r=n[0],o=n[1],i=b(o)?String(o):JSON.stringify(o);return t+"\n"+JSON.stringify(r)+"\n"+i}),o)}function oe(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function ie(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=f(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=f(t.sdk.packages||[],e.packages||[]),t):t}function se(t,e){var n=oe(e),r="aggregates"in t?"sessions":"session";return[ne(u(u({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:Dt(e.dsn)}),[[{type:r},t]]),r]}!function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=Lt(t),this.metadata=e,this._tunnel=n}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return Kt(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return Qt(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return te(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return ee(this._dsnObject,this._tunnel)}}();var ae=function(){function t(){}return t.prototype.sendEvent=function(t){return S({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return S(!0)},t}(),ce=function(){function t(t){this._options=t,this._options.dsn||Ht&&Q.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new Pt("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new Pt("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=function(t,e){var n=oe(e),r=t.type||"event",o=(t.sdkProcessingMetadata||{}).transactionSampling||{},i=o.method,s=o.rate;return ie(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata,ne(u(u({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:Dt(e.dsn)}),[[{type:r,sample_rates:[{id:i,rate:s}]},t]])}(t,Jt(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(e).then(null,(function(t){Ht&&Q.error("Error while sending event:",t)}))}else this._transport.sendEvent(t).then(null,(function(t){Ht&&Q.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=h(se(t,Jt(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(e).then(null,(function(t){Ht&&Q.error("Error while sending session:",t)}))}else this._transport.sendSession(t).then(null,(function(t){Ht&&Q.error("Error while sending session:",t)}));else Ht&&Q.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new ae},t}();function ue(){if(!("fetch"in(0,T.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function pe(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function he(){if(!ue())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var fe="?";function le(t,e,n,r){var o={filename:t,function:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var de=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ge=/\((\S*)(?::(\d+))(?::(\d+))\)/,ve=[30,function(t){var e=de.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=ge.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=h(ke(e[1]||fe,e[2]),2),o=r[0];return le(r[1],o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],ye=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,me=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,be=[50,function(t){var e,n=ye.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=me.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],i=n[1]||fe;return i=(e=h(ke(i,o),2))[0],le(o=e[1],i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],_e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,we=[40,function(t){var e=_e.exec(t);return e?le(e[2],e[1]||fe,+e[3],e[4]?+e[4]:void 0):void 0}],Ce=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,xe=[10,function(t){var e=Ce.exec(t);return e?le(e[2],e[3]||fe,+e[1]):void 0}],Ee=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Se=[20,function(t){var e=Ee.exec(t);return e?le(e[5],e[3]||e[4]||fe,+e[1],+e[2]):void 0}],ke=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:fe,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Oe(t){var e=je(t),n={type:t&&t.name,value:Re(t)};return e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Te(t){return{exception:{values:[Oe(t)]}}}function je(t){var e=t.stacktrace||t.stack||"",n=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Fe.test(t.message))return 1}return 0}(t);try{return function(){for(var t=[],e=0;e0&&n(!1)}),t);e.forEach((function(t){S(t).then((function(){--o||(clearTimeout(i),n(!0))}),r)}))}))}}}var Ie=6e4;function Ne(t,e){return t[e]||t.all||0}function Me(t,e,n){return void 0===n&&(n=Date.now()),Ne(t,e)>n}function Ue(t,e,n){var r,o,i,s;void 0===n&&(n=Date.now());var a=u({},t),c=e["x-sentry-rate-limits"],h=e["retry-after"];if(c)try{for(var f=p(c.trim().split(",")),l=f.next();!l.done;l=f.next()){var d=l.value.split(":",2),g=parseInt(d[0],10),v=1e3*(isNaN(g)?60:g);if(d[1])try{for(var y=(i=void 0,p(d[1].split(";"))),m=y.next();!m.done;m=y.next())a[m.value]=n+v}catch(t){i={error:t}}finally{try{m&&!m.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}else a.all=n+v}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}else h&&(a.all=n+function(t,e){void 0===e&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?Ie:r-e}(h,n));return a}function qe(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}var $e=30;function He(t,e,n){void 0===n&&(n=Le(t.bufferSize||$e));var r={};return{send:function(t){var o=function(t){var e=h(t,2),n=h(e[1],1);return h(n[0],1)[0].type}(t),i="event"===o?"error":o,s={category:i,body:re(t)};return Me(r,i)?k({status:"rate_limit",reason:ze(r,i)}):n.add((function(){return e(s).then((function(t){var e=t.body,n=t.headers,o=t.reason,s=qe(t.statusCode);return n&&(r=Ue(r,n)),"success"===s?S({status:s,reason:o}):k({status:s,reason:o||e||("rate_limit"===s?ze(r,i):"Unknown transport error")})}))}))},flush:function(t){return n.drain(t)}}}function ze(t,e){return"Too many "+e+" requests, backing off until: "+new Date(Ne(t,e)).toISOString()}var Ve,We="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Xe=(0,T.V)();function Ye(){if(Ve)return Ve;if(pe(Xe.fetch))return Ve=Xe.fetch.bind(Xe);var t=Xe.document,e=Xe.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){We&&Q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Ve=e.bind(Xe)}function Je(t,e){return void 0===e&&(e=Ye()),He({bufferSize:t.bufferSize},(function(n){var r=u({body:n.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,r).then((function(t){return t.text().then((function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}}))}))}))}function Ke(t){return"event"===t?"error":t}var Ge=(0,T.V)(),Ze=function(){function t(t){var e=this;this.options=t,this._buffer=Le(30),this._rateLimits={},this._outcomes={},this._api=Jt(t.dsn,t._metadata,t.tunnel),this.url=te(this._api.dsn),this.options.sendClientReports&&Ge.document&&Ge.document.addEventListener("visibilitychange",(function(){"hidden"===Ge.document.visibilityState&&e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){return this._sendRequest(function(t,e){var n,r=oe(e),o=t.type||"event",i="transaction"===o||!!e.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling||{},a=s.method,c=s.rate;ie(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{n=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{n=JSON.stringify(Ut(t))}catch(t){var p=t;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:p.message,stack:p.stack}})}}var h={body:n,type:o,url:i?ee(e.dsn,e.tunnel):te(e.dsn)};if(i){var f=ne(u(u({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!e.tunnel&&{dsn:Dt(e.dsn)}),[[{type:o,sample_rates:[{id:a,rate:c}]},h.body]]);h.body=re(f)}return h}(t,this._api),t)},t.prototype.sendSession=function(t){return this._sendRequest(function(t,e){var n=h(se(t,e),2),r=n[0],o=n[1];return{body:re(r),type:o,url:ee(e.dsn,e.tunnel)}}(t,this._api),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var r=Ke(e)+":"+t;We&&Q.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){We&&Q.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e,n,r=ee(this._api.dsn,this._api.tunnel),o=(e=Object.keys(t).map((function(e){var n=h(e.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:t[e]}})),ne((n=this._api.tunnel&&Dt(this._api.dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,E.lu)(),discarded_events:e}]]));try{!function(t,e){if("[object Navigator]"===Object.prototype.toString.call(Xe&&Xe.navigator)&&"function"==typeof Xe.navigator.sendBeacon)return Xe.navigator.sendBeacon.bind(Xe.navigator)(t,e);ue()&&Ye()(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(t){console.error(t)}))}(r,re(o))}catch(t){We&&Q.error(t)}}else We&&Q.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,i=t.reject,s=qe(n.status);this._rateLimits=Ue(this._rateLimits,r),this._isRateLimited(e)&&We&&Q.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==s?i(n):o({status:s})},t.prototype._disabledUntil=function(t){var e=Ke(t);return new Date(Ne(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=Ke(t);return Me(this._rateLimits,e)},t}(),Qe=function(t){function e(e,n){void 0===n&&(n=Ye());var r=t.call(this,e)||this;return r._fetch=n,r}return a(e,t),e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:he()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new O((function(e,o){n._fetch(t.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:i,resolve:e,reject:o})})).catch(o)}))})).then(void 0,(function(e){throw e instanceof Pt?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(Ze),tn=4;function en(t){return He({bufferSize:t.bufferSize},(function(e){return new O((function(n,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(o.readyState===tn){var t={body:o.response,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")},reason:o.statusText,statusCode:o.status};n(t)}},o.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&o.setRequestHeader(i,t.headers[i]);o.send(e.body)}))}))}var nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new O((function(e,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:o,headers:i,resolve:e,reject:r})}},o.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(t.body)}))})).then(void 0,(function(e){throw e instanceof Pt?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(Ze),rn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.eventFromException=function(t,e){return Pe(t,e,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=c.Info),Ae(t,e,n,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=u(u({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=Jt(e.dsn,e._metadata,e.tunnel),r=ee(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(e);if(ue()){var o=u({},e.fetchParameters);return this._newTransport=Je({requestOptions:o,url:r}),new Qe(e)}return this._newTransport=en({url:r,headers:e.headers}),new nn(e)},e}(ce),on=(0,T.V)(),sn=0;function an(){return sn>0}function cn(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if(U(t))return t}catch(e){return t}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(t){return cn(t,e)}));return t.apply(this,o)}catch(t){throw sn+=1,setTimeout((function(){sn-=1})),Tt((function(n){n.addEventProcessor((function(t){return e.mechanism&&(K(t,void 0,void 0),G(t,e.mechanism)),t.extra=u(u({},t.extra),{arguments:r}),t})),yt(t)})),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}catch(t){}M(o,t),N(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return t.name}})}catch(t){}return o}function un(t){if(void 0===t&&(t={}),on.document)if(t.eventId)if(t.dsn){var e=on.document.createElement("script");e.async=!0,e.src=function(t,e){var n=Lt(t),r=Kt(n)+"embed/error-page/",o="dsn="+Dt(n);for(var i in e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&(o+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(o+="&email="+encodeURIComponent(e.user.email))}else o+="&"+encodeURIComponent(i)+"="+encodeURIComponent(e[i]);return r+"?"+o}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=on.document.head||on.document.body;n&&n.appendChild(e)}else We&&Q.error("Missing dsn option in showReportDialog call");else We&&Q.error("Missing eventId option in showReportDialog call")}var pn,hn=(0,T.V)(),fn={},ln={};function dn(t,e){fn[t]=fn[t]||[],fn[t].push(e),function(t){if(!ln[t])switch(ln[t]=!0,t){case"console":"console"in hn&&nt.forEach((function(t){t in hn.console&&I(hn.console,t,(function(e){return function(){for(var n=[],r=0;r2?e[2]:void 0;if(r){var o=pn,i=String(r);pn=i,gn("history",{from:o,to:i})}return t.apply(this,e)}}}();break;case"error":wn=hn.onerror,hn.onerror=function(t,e,n,r,o){return gn("error",{column:r,error:o,line:n,msg:t,url:e}),!!wn&&wn.apply(this,arguments)};break;case"unhandledrejection":Cn=hn.onunhandledrejection,hn.onunhandledrejection=function(t){return gn("unhandledrejection",t),!Cn||Cn.apply(this,arguments)};break;default:tt&&Q.warn("unknown instrumentation type:",t)}}(t)}function gn(t,e){var n,r;if(t&&fn[t])try{for(var o=p(fn[t]||[]),i=o.next();!i.done;i=o.next()){var s=i.value;try{s(e)}catch(e){tt&&Q.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Mt(s)+"\nError:",e)}}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function vn(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in hn&&x(t[0],Request)?t[0].url:String(t[0])}var yn,mn,bn=1e3;function _n(t,e){return void 0===e&&(e=!1),function(n){if(n&&mn!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===yn||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(mn,n))&&(t({event:n,name:r,global:e}),mn=n),clearTimeout(yn),yn=hn.setTimeout((function(){yn=void 0}),bn)}}}var wn=null,Cn=null,xn=["fatal","error","warning","log","info","debug","critical"];var En=function(){function t(e){this.name=t.id,this._options=u({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&ft().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:J(t)},{event:t})},t.prototype.setupOnce=function(){var t;this._options.console&&dn("console",Sn),this._options.dom&&dn("dom",(t=this._options.dom,function(e){var n,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=e.event.target?P(e.event.target,r):P(e.event,r)}catch(t){n=""}0!==n.length&&ft().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})})),this._options.xhr&&dn("xhr",kn),this._options.fetch&&dn("fetch",On),this._options.history&&dn("history",Tn)},t.id="Breadcrumbs",t}();function Sn(t){var e,n={category:"console",data:{arguments:t.args,logger:"console"},level:(e=t.level,"warn"===e?c.Warning:function(t){return-1!==xn.indexOf(t)}(e)?e:c.Log),message:B(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: "+(B(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}ft().addBreadcrumb(n,{input:t.args,level:t.level})}function kn(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,i=e.body;ft().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:i})}}function On(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?ft().addBreadcrumb({category:"fetch",data:t.fetchData,level:c.Error,type:"http"},{data:t.error,input:t.args}):ft().addBreadcrumb({category:"fetch",data:u(u({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function Tn(t){var e=(0,T.V)(),n=t.from,r=t.to,o=X(e.location.href),i=X(n),s=X(r);i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),ft().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var jn,Fn=function(t){function e(e){return void 0===e&&(e={}),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Ft}],version:Ft},t.call(this,rn,e)||this}return a(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),(0,T.V)().document&&(this._isEnabled()?un(u(u({},t),{dsn:t.dsn||this.getDsn()})):We&&Q.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(En);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(Xt),Rn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Pn=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var r=n();if(r){var o=r.getIntegration(t);if(o){var i=r.getClient(),s=i?i.getOptions():{},a=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),{allowUrls:f(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:f(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:f(t.ignoreErrors||[],e.ignoreErrors||[],Rn),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(o._options,s);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(Ht&&Q.warn("Event dropped due to being internal Sentry Error.\nEvent: "+J(t)),!0):function(t,e){return!(!e||!e.length)&&function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,o=e.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(e){return Ht&&Q.error("Cannot extract message for event "+J(t)),[]}return[]}(t).some((function(t){return e.some((function(e){return L(t,e)}))}))}(t,e.ignoreErrors)?(Ht&&Q.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+J(t)),!0):function(t,e){if(!e||!e.length)return!1;var n=Dn(t);return!!n&&e.some((function(t){return L(n,t)}))}(t,e.denyUrls)?(Ht&&Q.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+J(t)+".\nUrl: "+Dn(t)),!0):!function(t,e){if(!e||!e.length)return!0;var n=Dn(t);return!n||e.some((function(t){return L(n,t)}))}(t,e.allowUrls)&&(Ht&&Q.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+J(t)+".\nUrl: "+Dn(t)),!0)}(e,a)?null:e}}return e}))},t.id="InboundFilters",t}();function An(t){void 0===t&&(t=[]);for(var e=t.length-1;e>=0;e--){var n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function Dn(t){try{if(t.stacktrace)return An(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?An(e):null}catch(e){return Ht&&Q.error("Cannot extract url for event "+J(t)),null}}var Bn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){jn=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e0?e:function(){var t=(0,T.V)();try{return t.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:u,filename:h,function:"?",in_app:!0,lineno:p}),t}function Wn(t,e,n,r){G(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Xn(){var t=ft(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}var Yn=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){R((function(e,n){var r=ft().getIntegration(t);return r?function(t,e,n,r){if(!(n.exception&&n.exception.values&&r&&x(r.originalException,Error)))return n;var o=Jn(e,r.originalException,t);return n.exception.values=f(o,n.exception.values),n}(r._key,r._limit,e,n):e}))},t.id="LinkedErrors",t}();function Jn(t,e,n,r){if(void 0===r&&(r=[]),!x(e[n],Error)||r.length+1>=t)return r;var o=Oe(e[n]);return Jn(t,e[n],n,f([o],r))}var Kn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var r=n().getIntegration(t);if(r){try{if(function(t,e){return!!e&&(!!function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Zn(t,e)&&!!Gn(t,e))))}(t,e)||!!function(t,e){var n=Qn(e),r=Qn(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Zn(t,e)&&!!Gn(t,e)))}(t,e))}(e,r._previousEvent))return We&&Q.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return r._previousEvent=e}return r._previousEvent=e}return e}))},t.id="Dedupe",t}();function Gn(t,e){var n=tr(t),r=tr(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var o=0;o{"use strict";n.d(e,{B:()=>s,V:()=>i});var r=n(258),o={};function i(){return(0,r.wD)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function s(t,e,n){var r=n||i(),o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}},258:(t,e,n)=>{"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}n.d(e,{fj:()=>o,wD:()=>r}),t=n.hmd(t)},9297:(t,e,n)=>{"use strict";n.d(e,{lu:()=>c,zf:()=>u});var r=n(6475),o=n(258);t=n.hmd(t);var i={nowSeconds:function(){return Date.now()/1e3}},s=(0,o.wD)()?function(){try{return(0,o.fj)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=(0,r.V)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),a=void 0===s?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},c=i.nowSeconds.bind(i),u=a.nowSeconds.bind(a);!function(){var t=(0,r.V)().performance;if(t&&t.now){var e=36e5,n=t.now(),o=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-o):e,s=i{function e(){}t.exports=function(t,n,r){var o=!1;return r=r||e,i.count=t,0===t?n():i;function i(t,e){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(o=!0,n(t),n=r):0!==i.count||o||n(null,e)}}},3344:t=>{t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(n-e),s=e,a=0;s{function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=1&Math.floor(10*e)?t+n:t-n}return 0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},3371:(t,e)=>{!function(t){"use strict";e.encode=function(e){var n,r=new Uint8Array(e),o=r.length,i="";for(n=0;n>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(e){var n,r,o,i,s,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var p=new ArrayBuffer(a),h=new Uint8Array(p);for(n=0;n>4,h[u++]=(15&o)<<4|i>>2,h[u++]=(3&i)<<6|63&s;return p}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},3118:t=>{var e=void 0!==e?e:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),o=e&&e.prototype.append&&e.prototype.getBlob;function i(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function s(t,n){n=n||{};var r=new e;return i(t).forEach((function(t){r.append(t)})),n.type?r.getBlob(n.type):r.getBlob()}function a(t,e){return new Blob(i(t),e||{})}"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,a.prototype=Blob.prototype),t.exports=n?r?Blob:a:o?s:void 0},8144:t=>{var e=[].slice;t.exports=function(t,n){if("string"==typeof n&&(n=t[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=e.call(arguments,2);return function(){return n.apply(t,r.concat(e.call(arguments)))}}},5971:t=>{function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o{t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},104:t=>{t.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},3357:(t,e,n)=>{t.exports=n(7292),t.exports.parser=n(3401)},7292:(t,e,n)=>{var r=n(8520),o=n(5971),i=n(6617)("engine.io-client:socket"),s=n(6938),a=n(3401),c=n(4258),u=n(9140);function p(t,e){if(!(this instanceof p))return new p(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=c(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=c(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||void 0,this.key=e.key||void 0,this.passphrase=e.passphrase||void 0,this.cert=e.cert||void 0,this.ca=e.ca||void 0,this.ciphers=e.ciphers||void 0,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=p,p.priorWebsocketSuccess=!1,o(p.prototype),p.protocol=a.protocol,p.Socket=p,p.Transport=n(2672),p.transports=n(8520),p.parser=n(3401),p.prototype.createTransport=function(t){i('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new r[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},p.prototype.open=function(){var t;if(this.rememberUpgrade&&p.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},p.prototype.setTransport=function(t){i("setting transport %s",t.name);var e=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},p.prototype.probe=function(t){i('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",e),!e)return;p.priorWebsocketSuccess="websocket"===e.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),f(),r.setTransport(e),e.send([{type:"upgrade"}]),r.emit("upgrade",e),e=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,r.emit("upgradeError",s)}})))}function s(){n||(n=!0,f(),e.close(),e=null)}function a(n){var o=new Error("probe error: "+n);o.transport=e.name,s(),i('probe transport "%s" failed because of error: %s',t,n),r.emit("upgradeError",o)}function c(){a("transport closed")}function u(){a("socket closed")}function h(t){e&&t.name!==e.name&&(i('"%s" works - aborting "%s"',t.name,e.name),s())}function f(){e.removeListener("open",o),e.removeListener("error",a),e.removeListener("close",c),r.removeListener("close",u),r.removeListener("upgrading",h)}p.priorWebsocketSuccess=!1,e.once("open",o),e.once("error",a),e.once("close",c),this.once("close",u),this.once("upgrading",h),e.open()},p.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",p.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var t=0,e=this.upgrades.length;t{var r=n(3401),o=n(5971);function i(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=i,o(i.prototype),i.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(t){var e=r.decodePacket(t,this.socket.binaryType);this.onPacket(e)},i.prototype.onPacket=function(t){this.emit("packet",t)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},8520:(t,e,n)=>{var r=n(2934),o=n(9332),i=n(2252),s=n(6855);e.polling=function(t){var e=!1,n=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),e=t.hostname!==location.hostname||c!==t.port,n=t.secure!==a}if(t.xdomain=e,t.xscheme=n,"open"in new r(t)&&!t.forceJSONP)return new o(t);if(!s)throw new Error("JSONP disabled");return new i(t)},e.websocket=s},2252:(t,e,n)=>{var r=n(5911),o=n(2370),i=n(104);t.exports=p;var s,a=/\n/g,c=/\\n/g;function u(){}function p(t){r.call(this,t),this.query=this.query||{},s||(s=i.___eio=i.___eio||[]),this.index=s.length;var e=this;s.push((function(t){e.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){e.script&&(e.script.onerror=u)}),!1)}o(p,r),p.prototype.supportsBinary=!1,p.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},p.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},p.prototype.doWrite=function(t,e){var n=this;if(!this.form){var r,o=document.createElement("form"),i=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=s,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function u(){p(),e()}function p(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{var t='